package com.zhku.yygh.hosp.service;

import com.zhku.yygh.model.hosp.Department;
import com.zhku.yygh.model.hosp.Schedule;
import com.zhku.yygh.vo.hosp.DepartmentQueryVo;
import com.zhku.yygh.vo.hosp.DepartmentVo;
import com.zhku.yygh.vo.hosp.ScheduleQueryVo;
import org.springframework.data.domain.Page;

import java.util.List;
import java.util.Map;

/**
 * @BelongsProject: yygh-parent
 * @BelongsPackage: com.zhku.yygh.hosp.service
 * @Author: "deweyMDH"
 * @CreateTime: 2023-05-14  19:36
 * @Version: 1.0
 */
public interface DepartmentService {
    // 上传科室信息
    void save(Map<String, Object> paramMap);

    // 查询科室接口
    Page<Department> findPageDepartment(int page, int limit,  DepartmentQueryVo departmentQueryVo);

    // 删除科室接口
    void remove(String hoscode, String depcode);

    // --- Controller 调用
    //根据医院编号，查询医院所有科室列表
    List<DepartmentVo> findDeptTree(String hoscode);

    //根据科室编号，和医院编号，查询科室名称
    String getDepName(String hoscode, String depcode);
    //根据科室编号，和医院编号，查询科室实例
    Department getDepartment(String hoscode, String depcode);
}
